<HTML>
	<HEAD>
		<TITLE>变量和数组的利用！</TITLE>
		<script language="javascript">
			greeting = "<h1>电子科技大学计算机学院</h1>"
			welcome = "<p>欢迎学习<cite>JavaScript</cite>.</p>";
		</script>
	</HAED>

		<BODY>
			<script language="javascript">
				document.write(greeting);
				document.write(welcome);
			</script>
			<script>
				myarray = new Array(6);
				myarray[0] = "成都";
				myarray[1] = "重庆";
				myarray[2] = "温江";
				myarray[3] = "广汉";
				myarray[4] = "新都";
				document.write(myarray[0]);
				document.write("<br>");
				document.write(myarray[1]);
				document.write("<br>");
				document.write(myarray[2]);
				document.write("<br>");
				document.write(myarray[3]);
				document.write("<br>");
				document.write(myarray[4]);
				document.write("<br>");
				document.write(myarray[5]);
			</script>
		</BDOY>
</HTML>